<?php
namespace app\websocket;

use think\worker\Server;

class Event extends Server
{
    protected $socket = 'websocket://0.0.0.0:1111';

    public function onMessage($connection,$data)
    {
//        $connection->send(json_encode($data));
        dump(2);
    }
}